import request from "@/config/utils/request";
//结算冲销列表
export function listSettlementWritePage(data) {
  return request({
    url: "/apis/smp/transSettlement/listPageSettlementWriteOff",
    method: "post",
    data
  });
}
//新增结算冲销单-保存
export function saveSettlementWrite(data) {
  return request({
    url: "/apis/smp/transSettlement/saveSettlementWriteOff",
    method: "post",
    data
  });
}
//新增结算冲销单-保存并提交
export function submitSettlementWrite(data) {
  return request({
    url: "/apis/smp/transSettlement/saveSettlementWriteOff",
    method: "post",
    data
  });
}
//编辑结算冲销单
export function editSettlementWrite(data) {
  return request({
    url: "/apis/smp/transSettlement/editSettlementWriteOff",
    method: "post",
    data
  });
}

//查看结算冲销单-基本信息
export function getSettlementWriteById(data) {
  return request({
    url: "/apis/smp/transSettlement/getSettlementWriteOff",
    method: "post",
    data
  });
}
//查看结算冲销单-附件列表
export function listScFilesPage(data) {
  return request({
    url: "/apis/smp/scfiles/listScFilesPage",
    method: "post",
    data
  });
}
//删除结算冲销单
export function removeSettlementWrite(data) {
  return request({
    url: "/apis/smp/transSettlement/removeSettlementWriteOff",
    method: "post",
    data
  });
}
//撤销结算冲销单
export function revokeSettlementWrite(data) {
  return request({
    url: "/apis/smp/transSettlement/recallSettlementWriteOff",
    method: "post",
    data
  });
}
//查询结算单列表-选择结算单编号的弹框
export function listSettlementPage(data) {
  return request({
    url: "/apis/smp/transSettlement/transNewWriteSettlementListPage",
    method: "post",
    data
  });
}
//查询结算单
export function getSettlementById(data) {
  return request({
    url: "/apis/smp/transSettlement/getTransSettlement",
    method: "post",
    data
  });
}
//编辑
export function getSettlementByEditor(data) {
  return request({
    url: "/apis/smp/transSettlement/editSettlementWriteOff",
    method: "post",
    data
  });
}
//导出
export function accountExport(data) {
  return request({
    url: "/apis/smp/export/transSettlementWriteOffDetail",
    method: "post",
    data
  });
}